home *** CD-ROM | disk | FTP | other *** search
- global gPostitSprite
-
- on PostitPrepare
- RememberSpriteCursors()
- SpriteCursor("all", 0)
- DeactivateSpritesExcept([gPostitSprite + 2, gPostitSprite + 3])
- if the castNum of sprite 44 <> the number of member "PostIt" then
- set the puppet of sprite 44 to 1
- set the castNum of sprite 44 to the number of member "PostIt"
- set the locH of sprite 44 to 180
- set the locV of sprite 44 to 240
- set the width of sprite 44 to the width of cast "PostIt"
- set the height of sprite 44 to the height of cast "PostIt"
- set the ink of sprite 44 to 36
- end if
- if the castNum of sprite 45 <> the number of member "PostIt Unten" then
- set the puppet of sprite 45 to 1
- set the castNum of sprite 45 to the number of member "PostIt Unten"
- set the locH of sprite 45 to 185
- set the locV of sprite 45 to 302
- set the width of sprite 45 to the width of cast "PostIt Unten"
- set the height of sprite 45 to the height of cast "PostIt Unten"
- set the ink of sprite 45 to 36
- end if
- if the castNum of sprite 48 <> the number of member "PostIt Beenden" then
- set the puppet of sprite 48 to 1
- set the castNum of sprite 48 to the number of member "PostIt Beenden"
- set the locH of sprite 48 to 175
- set the locV of sprite 48 to 234
- set the width of sprite 48 to the width of cast "PostIt Beenden"
- set the height of sprite 48 to the height of cast "PostIt Beenden"
- set the ink of sprite 48 to 36
- end if
- repeat with i = gPostitSprite to gPostitSprite + 4
- set the puppet of sprite i to 1
- set the visible of sprite i to 1
- end repeat
- SpriteCursor([gPostitSprite + 2, gPostitSprite + 3], ["CursorFinger", "CursorFingerMask"])
- end
-
- on PostitEnde
- repeat with i in [44, 45, 48]
- set the visible of sprite i to 0
- end repeat
- updateStage()
- PostitPrepare()
- set the castNum of sprite (gPostitSprite + 2) to the number of member "Postit Nein"
- set the castNum of sprite (gPostitSprite + 3) to the number of member "Postit Ja"
- set the castNum of sprite (gPostitSprite + 4) to the number of member "Postit Beenden"
- updateStage()
- playsound(1, "pgmende", 1)
- pause()
- end
-
- on PostitDelete
- PostitPrepare()
- set the castNum of sprite (gPostitSprite + 2) to the number of member "Postit Nein"
- set the castNum of sprite (gPostitSprite + 3) to the number of member "Postit Ja"
- set the castNum of sprite (gPostitSprite + 4) to the number of member "Postit Sp l├╢schen"
- updateStage()
- pause()
- end
-